#ifndef _HUGE_AXI_LITE_H_
#define _HUGE_AXI_LITE_H_

class CFpga_axi_lite
{
public:
	CFpga_axi_lite();
	~CFpga_axi_lite();
	int init(int base_addr,int len);
	void uninit();
	void attath_memfd(int mem_fd)
	{
		m_mem_fd = mem_fd;
	}
	
	int freeze();
	int sw_replay_mod();
	int sw_encoder_mod();
protected:
	void* m_map_base = 0;
	int m_mem_fd    = -1;
	int m_base_addr = 0x82000000;
	int m_data_len  = 8196;
	int m_fd = -1;
};

#endif